<?php

$appname = "ObservatorioLaprida";

// Ambiente: desarrollo/produccion
$ambiente = "desarrollo";

// Items por página
$totalItemsPerPage = 15;

// Smarty
$template_dir = 'pages/templates';
$compile_dir = 'pages/templates_c';
$cache_dir = 'pages/cache';
$config_dir = 'pages/config';
 
// Login
$expirationSeconds = 3000; // en seg

// Icons
$iconsImg = array(
	"addIconImg" => "add.png",
	"configureIconImg" => "configure.png",
	"removeIconImg" => "remove.png",
	"editIconImg" => "edit.png",
	"infoIconImg" => "info.png",
	"backIconImg" => "back.png",
	"nextIconImg" => "next.png",
	"imageIconImg" => "picture.png",
	"flashIconImg" => "flash.png",
	"historyBackIconImg" => "historyback.png"
);

// Manage items
$manageItems = array(
	array("id"=>"myaccount", "name"=>"Mi cuenta", "script"=>"adminAccount.php", "submenu"=>null),
	array("id"=>"logout", "name"=>"Salir", "script"=>"logout.php", "submenu"=>null)
);

// App info
$appInfo = array(
	"appname" => "Observatorio Laprida",
	"description" => "SCM System",
	"favicon" => "images.app/favicon.ico",
	"version" => "1.0",
	"copyright" => "Desarrollado por <a href='http://www.paraguil.com.ar'>Paraguil Comunicaciones</a>"
);

// Menu items
$menuItems = array(
	
	
	array("id"=>"llamadas", "name"=>"Registro  de Llamadas", "script"=>"llamadas.php", "rol"=>"L", "class"=>"llamadas", 
		"submenu"=>array(
			array("id"=>"llamadas", "name"=>"Listado", "rol"=>"L", "script"=>"llamadas.php"),
			array("id"=>"addllamada", "name"=>"Nueva", "rol"=>"L", "script"=>"llamadas.php?action=add"),
			array("id"=>"updatellamada", "name"=>"Editar", "rol"=>"L", "script"=>"llamadas.php?action=update"),
			array("id"=>"deletellamada", "name"=>"Delete", "rol"=>"L", "script"=>"llamadas.php?action=delete"),
			array("id"=>"detailsllamada", "name"=>"Detalles", "rol"=>"L", "script"=>"llamadas.php?action=detail"),
			array("id"=>"mapllamadas", "name"=>"Mapa", "rol"=>"L", "script"=>"llamadas.php?action=map"),
			array("id"=>"heatmapllamadas", "name"=>"Mapa", "rol"=>"L", "script"=>"llamadas.php?action=heatmap"),
			array("id"=>"statsllamadas", "name"=>"Estad&iacute;sticas", "rol"=>"L", "script"=>"llamadas.php?action=stats"),
			array("id"=>"searchllamadas", "name"=>"Search", "rol"=>"L", "script"=>"llamadas.php?action=search"),
			array("id"=>"searchstats", "name"=>"Search", "rol"=>"L", "script"=>"ajaxLlamadasStats.php")
		)
	),
	array("id"=>"estacion", "name"=>"Estacion comunal", "script"=>"delitos.php?s=1", "rol"=>"E", "class"=>"estacioncomunal", 
		"submenu"=>array(
			array("id"=>"delitos1", "name"=>"Delitos", "rol"=>"E", "script"=>"delitos.php?s=1"),
			array("id"=>"adddelito1", "name"=>"Nueva", "rol"=>"E", "script"=>"delitos.php?action=add&s=1"),
			array("id"=>"updatedelito1", "name"=>"Editar", "rol"=>"E", "script"=>"delitos.php?action=update&s=1"),
			array("id"=>"deletedelito1", "name"=>"Delete", "rol"=>"E", "script"=>"delitos.php?action=delete&s=1"),
			array("id"=>"detailsdelito1", "name"=>"Detalles", "rol"=>"E", "script"=>"delitos.php?action=details&s=1"),
			array("id"=>"mapdelitos1", "name"=>"Mapa", "rol"=>"E", "script"=>"delitos.php?action=map&s=1"),
			array("id"=>"heatmapdelitos1", "name"=>"Mapa", "rol"=>"E", "script"=>"delitos.php?action=heatmap&s=1"),
			array("id"=>"statsdelitos1", "name"=>"Estad&iacute;sticas", "rol"=>"E", "script"=>"delitos.php?action=stats&s=1"),
			array("id"=>"searchdelitos1", "name"=>"Search", "rol"=>"E", "script"=>"delitos.php?action=search&s=1"),
			array("id"=>"stats1", "name"=>"Search", "rol"=>"E", "script"=>"ajaxDelitosStats.php")
			
		)
	),
	array("id"=>"patrulla", "name"=>"Patrulla Rural", "script"=>"delitos.php?s=2", "rol"=>"P", "class"=>"patrullarural", 
		"submenu"=>array(
			array("id"=>"delitos2", "name"=>"Delitos", "rol"=>"P", "script"=>"delitos.php?s=2"),
			array("id"=>"adddelito2", "name"=>"Nueva", "rol"=>"P", "script"=>"delitos.php?action=add&s=2"),
			array("id"=>"updatedelito2", "name"=>"Editar", "rol"=>"P", "script"=>"delitos.php?action=update&s=2"),
			array("id"=>"deletedelito2", "name"=>"Delete", "rol"=>"P", "script"=>"delitos.php?action=delete&s=2"),
			array("id"=>"detailsdelito2", "name"=>"Detalles", "rol"=>"P", "script"=>"delitos.php?action=details&s=2"),
			array("id"=>"mapdelitos2", "name"=>"Mapa", "rol"=>"P", "script"=>"delitos.php?action=map&s=2"),
			array("id"=>"heatmapdelitos2", "name"=>"Mapa", "rol"=>"P", "script"=>"delitos.php?action=heatmap&s=2"),
			array("id"=>"statsdelitos2", "name"=>"Estad&iacute;sticas", "rol"=>"P", "script"=>"delitos.php?action=stats&s=2"),
			array("id"=>"searchdelitos2", "name"=>"Search", "rol"=>"P", "script"=>"delitos.php?action=search&s=2"),
			array("id"=>"stats2", "name"=>"Search", "rol"=>"P", "script"=>"ajaxDelitosStats.php")
		)
	),
	array("id"=>"comisaria", "name"=>"Comisaria de la Mujer", "script"=>"delitos.php?s=3", "rol"=>"M", "class"=>"comisariamujer", 
		"submenu"=>array(
			array("id"=>"delitos3", "name"=>"Delitos", "rol"=>"M", "script"=>"delitos.php?s=3"),
			array("id"=>"adddelito3", "name"=>"Nueva", "rol"=>"M", "script"=>"delitos.php?action=add&s=3"),
			array("id"=>"updatedelito3", "name"=>"Editar", "rol"=>"M", "script"=>"delitos.php?action=update&s=3"),
			array("id"=>"deletedelito3", "name"=>"Delete", "rol"=>"M", "script"=>"delitos.php?action=delete&s=3"),
			array("id"=>"detailsdelito3", "name"=>"Detalles", "rol"=>"M", "script"=>"delitos.php?action=details&s=3"),
			array("id"=>"mapdelitos3", "name"=>"Mapa", "rol"=>"M", "script"=>"delitos.php?action=map&s=3"),
			array("id"=>"heatmapdelitos3", "name"=>"Mapa", "rol"=>"M", "script"=>"delitos.php?action=heatmap&s=3"),
			array("id"=>"statsdelitos3", "name"=>"Estad&iacute;sticas", "rol"=>"M", "script"=>"delitos.php?action=stats&s=3"),
			array("id"=>"searchdelitos3", "name"=>"Search", "rol"=>"M", "script"=>"delitos.php?action=search&s=3"),
			array("id"=>"stats3", "name"=>"Search", "rol"=>"M", "script"=>"ajaxDelitosStats.php")
		)
	),
	array("id"=>"contravenciones", "name"=>"Contravenciones", "script"=>"delitos.php?s=4", "rol"=>"C", "class"=>"contravenciones", 
		"submenu"=>array(
			array("id"=>"delitos4", "name"=>"Delitos", "rol"=>"M", "script"=>"delitos.php?s=4"),
			array("id"=>"adddelito4", "name"=>"Nueva", "rol"=>"M", "script"=>"delitos.php?action=add&s=4"),
			array("id"=>"updatedelito4", "name"=>"Editar", "rol"=>"M", "script"=>"delitos.php?action=update&s=4"),
			array("id"=>"deletedelito4", "name"=>"Delete", "rol"=>"M", "script"=>"delitos.php?action=delete&s=4"),
			array("id"=>"detailsdelito4", "name"=>"Detalles", "rol"=>"M", "script"=>"delitos.php?action=details&s=4"),
			array("id"=>"mapdelitos4", "name"=>"Mapa", "rol"=>"M", "script"=>"delitos.php?action=map&s=4"),
			array("id"=>"heatmapdelitos4", "name"=>"Mapa", "rol"=>"M", "script"=>"delitos.php?action=heatmap&s=4"),
			array("id"=>"statsdelitos4", "name"=>"Estad&iacute;sticas", "rol"=>"M", "script"=>"delitos.php?action=stats&s=4"),
			array("id"=>"searchdelitos4", "name"=>"Search", "rol"=>"M", "script"=>"delitos.php?action=search&s=4"),
			array("id"=>"stats4", "name"=>"Search", "rol"=>"M", "script"=>"ajaxDelitosStats.php")
		)
	),
	array("id"=>"usuarios", "name"=>"Usuarios", "script"=>"usuarios.php", "rol"=>"0", "class"=>"usuarios", 
		"submenu"=>array(
			array("id"=>"usuarios", "name"=>"Listado", "rol"=>"0", "script"=>"usuarios.php")
		)
	),

);


// Security access
/*$securityAccess = array(
	"licencias.php" => array("rol"=>"L", "welcome"=>"licencias.php"),
	"infracciones.php" => array("rol"=>"I", "welcome"=>"infracciones.php"),
	"estadisticas.php" => array("rol"=>"E", "welcome"=>"estadisticas.php"),
	"accidentes.php" => array("rol"=>"A", "welcome"=>"accidentes.php"),
	"usuarios.php" => array("rol"=>"0", "welcome"=>"licencias.php")	// el rol "administrador" es el 0
);*/

$publickey = "6LdblggAAAAAAIXVfVrLdxGEKx0T1G08DmWUE1mC"; // you got this from the signup page
$privatekey = "6LdblggAAAAAAAUbntwUe4x3oJiWyKzwjg51QOvK";

// Si es 1, envia mails
$sendmail = 0;

// Ambiente en donde se encuentra corriendo la app
$localhost = 1;  // 1=localhost, 0=server

// Google API
$google_api = "";
$google_api_local = "ABQIAAAApBChxjyiV_WEXj_nYDcitRQBJN7lKDbzSS_M7Sqp-yZ7GVKnDhS8kn_vqnTUFWnm2fUcRhBUCBdmpA";
$google_api_com = "ABQIAAAApBChxjyiV_WEXj_nYDcitRQRFTbOG3vJVCoxPiTqdJADf24pjxT5waQSJQ23ygvmCgu7SFOZBMTtUg"; // mlseguridad.com.ar
if ($localhost)
	$google_api = $google_api_local;
else {
	$google_api = $google_api_com;
}

?>